package com.ilink.ilinkcommon.exception;

import lombok.Data;

/**
 * <h3>ilink-java-backend</h3>
 *
 * @author HuangJiayu
 * @description <p>通用异常类</p>
 * @date 2024-09-14 16:06
 **/
@Data
public class CommonException extends RuntimeException {
	
	private int code;
	
	public CommonException(String message, int code) {
		super(message);
		this.code = code;
	}
	
	public CommonException(String message, Throwable cause, int code) {
		super(message, cause);
		this.code = code;
	}
	
	public CommonException(Throwable cause, int code) {
		super(cause);
		this.code = code;
	}
}
